import http from '../utils/require'
//跳转弹出窗
export function getAdvise(data){
	return http.post('/mobile.do',{...data,...{action:'getAdvise'}})
}
//获取首页消息、精彩视频、照片墙数字
export function getIndexInfoNum(data){
	return http.post('/mobile.do',{...data,...{action:'getIndexInfoNum'}})
}
//首页轮播图
export function getBannerImgs(data){
	return http.post('/mobile.do',{...data,...{action:'imgList'}})
}
//首页人物列表
export function getPeopleList(data){
	return http.post('/mobile.do',{...data,...{action:'starList'}})
}
//首页新闻列表
export function getNewsList(data){
	return http.post('/mobile.do',{...data,...{action:'newsList'}})
}
//首页同步课堂列表
export function getClassList(data){
	return http.post('/mobile.do',{...data,...{action:'deviceListForApplet',}})//applet,1,openid,
}
export function playVideo(data){
	return http.post('/mobile.do',{...data,...{action:'checkVideo',}})//applet,1,openid,playVideo
}
//食谱列表
export function getFoodsList(data){
	return http.post('/mobile.do',{...data,...{action:'foodList'}})
}
// 首页-精彩视频列表
export function getVideoList(data){
	return http.post('/mobile.do',{...data,...{action:'videoList'}})
}
// 首页-照片墙列表
export function getPhotoWallList(data){
	return http.post('/mobile.do',{...data,...{action:'photoWallList'}})
}

//首页-通知
export function getMessageList(data){
	return http.post('/mobile.do',{...data,...{action:'tzList'}})
}
//首页-童言趣语列表
export function getChildFunList(data){
	return http.post('/mobile.do',{...data,...{action:'childFunList'}})
}

//评论列表
export function getCommentList(data){
	return http.post('/mobile.do',{...data,...{action:'commentList'}})
}

// 评论保存
export function saveComment(data){
	return http.post('/mobile.do',{...data,...{action:'commentSave'}})
}
// 点赞
export function setLoveInfo(data){
	return http.post('/mobile.do',{...data,...{action:'loveInfo'}})
}
// 取消点赞
export function cancelLoveInfo(data){
	return http.post('/mobile.do',{...data,...{action:'loveCancal'}})
}
//首页列表
export function getImgList(data){
	return http.post('/mobile.do',{...data,...{action:'bjInfoList'}})
}
//获取openid
export function getOpenId(data){
	return http.post('/mobile.do',{...data,...{action:'getOpenId'}})
}
//登录
export function checkLogin(data){
	return http.post('/mobile.do',{...data,...{action:'loginForMpApp'}})
}
//绑定账号
export function bindMessage(data){
	return http.post('/mobile.do',{...data,...{action:'saveBind'}})
}
//收藏
export function collectInfo(data){
	return http.post('/mobile.do',{...data,...{action:'collectInfo'}})
}
//取消收藏
export function collectCancal(data){
	return http.post('/mobile.do',{...data,...{action:'collectCancal'}})
}

//园所通知-列表
export function getYSmsgList(data){
	return http.post('/mobile.do',{...data,...{action:'ystzList'}})
}
//班级通知-列表
export function getBZmsgList(data){
	return http.post('/mobile.do',{...data,...{action:'bjtzList'}})
}
//园所通知-详情
export function getYSmsgDetail(data){
	return http.post('/mobile.do',{...data,...{action:'ystzDetail'}})
}
//cookfoodDetail
//根据id获取详情
export function getDetailById(data){
	return http.post('/mobile.do',{...{action:''},...data})
}